var loginValidator;

var modelObject = {
		init:function(){
			//--表单验证 start--
			loginValidator = $("#updatePwd").validate
			({
				rules: {
					oldPwd: "required",
					password: {
						required:true,
						minlength:6
					},
					confirmPwd: {
						required:true,
						equalTo:"#password",
						minlength:6
					}
				},
				messages:{
					oldPwd:"请填写现用密码",
					password:{
						required:"请填写新密码",
						minlength:"密码长度不能少于6位"
					},
					confirmPwd:{
						required:"请确认新密码",
						equalTo:"两次新密码输入不一致",
						minlength:"密码长度不能少于6位"
					}
				},
				submitHandler:function(form){
					form.submit();
				}
			});
			//-- 表单验证 end --
		}
	};

$(document).ready(function(){
	//显示修改密码导航条
	$("#_updatePwd").show();
	
	modelObject.init();
	
});